package com.fishsticks;



import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;


/** 
 * Lets the user register a new username in To-Do app
 */
public class RegisterActivity extends Activity 
{
    /** 
     * Called when the activity is first created. 
     * Initializes button click listeners and intents
     * to switch back to login page
     */
    @Override
    public void onCreate(Bundle savedInstanceState) 
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.register_page);
        
        Button cancelButton = (Button) findViewById(R.id.cancelButtonRegisterPage);
        
        cancelButton.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View arg0) {
				//Switches back to login screen
				Intent i = new Intent(getApplicationContext(), LoginActivity.class);		
				startActivity(i);
			}
        	
        });
    }
}